<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<input type="button" value="抽奖" id="luckyBtn"/>
<span id="peo">郑婷婷</span>
</body>
<script>
    let arr = ["郑婷婷", "林伟伟", "刘珍珍", "刘慧慧", "李帅", "孙成威",
        "李子迪", "代茹南", "陈龙", "王国庆", "王强强", "陈宇", "吕刘义",
        "杨瑞成", "杨文豪", "杨淮庆", "种庆", "刘警东", "孙成威", "张炎华"];
    let i = 0;

    function f() {
        if (i == arr.length - 1) {
            i = -1;
        }
        peo.innerHTML = arr[++i];
    }

    let timer;
    luckyBtn.onclick = function () {
        if (this.value != "停") {
            timer = setInterval(f, 10);
            this.value = "停";
        } else {
            clearInterval(timer);
            this.value = "抽奖";
        }
    }
</script>
</html>